package cn.kgc.emp.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Emp implements Serializable {

	private static final long serialVersionUID = 1L;
	private Integer empId;
	private String name;
	private Double sal;
	private Integer deptId;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;
	
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Integer getEmpId() {
		return empId;
	}
	public void setEmpId(Integer empId) {
		this.empId = empId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getSal() {
		return sal;
	}
	public void setSal(Double sal) {
		this.sal = sal;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "Emp [empId=" + empId + ", name=" + name + ", sal=" + sal + ", deptId=" + deptId + ", birthday="
				+ birthday + ", getBirthday()=" + getBirthday() + ", getEmpId()=" + getEmpId() + ", getName()="
				+ getName() + ", getSal()=" + getSal() + ", getDeptId()=" + getDeptId() + ", getClass()=" + getClass()
				+ ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";
	}
	
}
